]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
blur-effect: Handle failure of background blitting gracefully
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 13 Feb 2020 21:50:40 +0000 (22:50 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 27 Mar 2020 22:31:57 +0000 (22:31 +0000)
`paint_background` already provides a return value in case the blitting
of the framebuffer fails, handle that and fall back to only drawing the
actor in case something goes wrong.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1000

src/shell-blur-effect.c

index c3fb3bc60e68cd69ae12cd0bd5d6aa1c1eb869c7..5e50ab886f75cf48e9b96be9dc29c919ef47fa78 100644 (file)
@@ -807,7 +807,9 @@ shell_blur_effect_paint (ClutterEffect           *effect,
               break;
 
             case SHELL_BLUR_MODE_BACKGROUND:
-              paint_background (self, paint_context, &source_actor_box);
+              if (!paint_background (self, paint_context, &source_actor_box))
+                goto fail;
+
               apply_blur (self, paint_context, &self->background_fb, 255);
               break;
             }